<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>index</title>
</head>
<body>
	this is index.html <br/>
	<p>食物品种：</p><br />
<?php if(is_array($food)): $i = 0; $__LIST__ = $food;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?><p><?php echo ($item['vegetables']); ?></p>
	<?php if(is_array($item['fruits'])): $k = 0; $__LIST__ = $item['fruits'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?><p>数组key：<?php echo ($key); ?></p>
		<p><?php echo ($k); ?></p>
		<p><?php echo ($vo['fruits1']); ?></p>
		<p><?php echo ($vo['fruits2']); ?></p>
		<p><?php echo ($vo['fruits3']); ?></p><?php endforeach; endif; else: echo "" ;endif; endforeach; endif; else: echo "" ;endif; ?>

<?php if(isset($username)): ?>username 变量已经赋值<?php else: ?>username 变量还没有赋值<?php endif; ?>
</body>
</html>